package dfbz.缓冲流;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class demo_字符缓冲流 {
    public static void main(String[] args) {
        try ( BufferedReader bufferedReader = new BufferedReader(new FileReader("D:\\1.txt"))) {
            String len=null;
            while ((len=bufferedReader.readLine())!=null){
                System.out.println(len);
            }
        }catch (IOException e){
            e.getMessage();
        }
    }
}
